PendingIntentCompat
Helper for accessing features in PendingIntent.
Types
Link copied to clipboard
Functions
Link copied to clipboard
@NonNull
@NonNull
Retrieves a PendingIntent with mandatory mutability flag set on supported platform versions.
Link copied to clipboard
@Nullable
@Nullable
Retrieves a PendingIntent with mandatory mutability flag set on supported platform versions.
Link copied to clipboard
@Nullable
Retrieves a PendingIntent with mandatory mutability flag set on supported platform versions.
Link copied to clipboard
@NonNull
Retrieves a PendingIntent with mandatory mutability flag set on supported platform versions.
Link copied to clipboard
@Nullable
Retrieves a PendingIntent with mandatory mutability flag set on supported platform versions.
Link copied to clipboard
open fun send(@NonNull pendingIntent: @NonNull PendingIntent, code: Int, onFinished: @Nullable PendingIntent.OnFinished, @Nullable handler: @Nullable Handler)
open fun send(@NonNull pendingIntent: @NonNull PendingIntent, @NonNull context: @NonNull Context, code: Int, @NonNull intent: @NonNull Intent, onFinished: @Nullable PendingIntent.OnFinished, @Nullable handler: @Nullable Handler)
open fun send(@NonNull pendingIntent: @NonNull PendingIntent, @NonNull context: @NonNull Context, code: Int, @NonNull intent: @NonNull Intent, onFinished: @Nullable PendingIntent.OnFinished, @Nullable handler: @Nullable Handler, @Nullable requiredPermissions: @Nullable String, @Nullable options: @Nullable Bundle)
send variants that support PendingIntent.OnFinished callbacks have a bug on many API levels that the callback may be invoked even if the PendingIntent was never sent (ie, such as if the PendingIntent was canceled, and the send() invocation threw a PendingIntent.CanceledException).